
<template>
	<view class="container">
		<view class="tips">
			<img src="/static/yard.png" alt="" srcset="">
			<text>提交评价或建议，鼓励骑手和商家做得更好～</text>
		</view>
		<view class="commend">
			<view class="tilte">
				<text>您对商家/菜品满意吗？</text>
				<view class="title_submit">
					<u-checkbox @change="checkboxChange" v-model="checked" name="s" shape="circle">匿名提交</u-checkbox>
				</view>
			</view>
			<view class="content">
				<img :src="commend_list.img_url" alt="" srcset="">
				<text>{{commend_list.text}}</text>
			</view>
			<view class="rate">
				<text>总分</text>
				<u-rate :count="count" current="2"></u-rate>
			</view>
		</view>
		<button type="default" class="btn">提交</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				commend_list: {
					img_url: "/static/order_commend.png",
					text: "阿里与艾德炭烤麻里牛排海鲜（观音桥店）"
				},
				count: 5,
				checked: false
			}
		},
		methods: {
			checkboxChange(e) {
				console.log(e);
			}
		}
	}
</script>

<style lang="scss">
	.container {
		background: #F6F6F6;
		height: 1624rpx;

		.tips {
			display: flex;
			align-items: center;
			font-size: 22rpx;
			padding: 16rpx 34rpx;
			background-color: #FCF9E8;
			line-height: 72rpx;
			color: #FF8439;
			margin-bottom: 40rpx;

			img {
				width: 36rpx;
				height: 42rpx;
				margin-right: 12rpx;
			}
		}

		.commend {
			width: 694rpx;
			height: 290rpx;
			margin: 0 28rpx 64rpx 28rpx;
			background-color: #fff;
			border-radius: 24rpx;
			padding: 24rpx 36rpx 30rpx 30rpx;

			.tilte {
				display: flex;
				justify-content: space-between;

				text {
					font-size: 32rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: bold;
					color: #1F1F1F;
					line-height: 44rpx;
					letter-spacing: 1px;
				}

				.radio {
					height: 32rpx;
				}

				.title_submit {
					/deep/ .u-checkbox__label {
						font-size: 28rpx;
						color: #616161;
					}
				}

			}

			.content {
				margin: 34rpx 0;
				display: flex;
				align-items: center;

				img {
					width: 90rpx;
					height: 90rpx;
					margin-right: 12rpx;
				}

				text {
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #121212;
					line-height: 34rpx;
				}
			}

			.rate {
				text {
					font-size: 26rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: bold;
					color: #121212;
					line-height: 36rpx;
					margin-right: 16rpx;
				}
			}
		}


		.btn {
			width: 620rpx;
			height: 78rpx;
			background: #BBBBBB;
			border-radius: 39rpx;
			color: #fff;
			font-size: 30rpx;
		}
	}
</style>
